<script setup>
import Position from '@/components/Position.vue'
import FooterBorder from '@/components/FooterBorder.vue'
import TencentMap from '@/components/TencentMap.vue'
</script>

<template>
    <div class="content">
        <div class="top-image"></div>
        <Position>
            <template #default>
                联系布宫
            </template>
        </Position>
        <div class="container">
            <div class="bt">
                <a href="#">联系布宫</a>
                <!-- <span></span> -->
            </div>

            <div class="row-1">
                <div class="left">
                    <h3>联系我们</h3>
                    <img src="@/assets/line.png">
                    <p><span style="color: #333333;">地址：</span>拉萨市城关区北京中路35号</p>
                    <p><span style="color: #333333;">电话：</span>400-864-9111(09:30-17:00)</p>
                    <p><span style="color: #333333;">传真：</span>0891-6339615</p>
                    <p><span style="color: #333333;">邮编：</span>850000</p>
                    <p><span style="color: #333333;">邮箱：</span>service@potalapalace.cn</p>
                </div>
                <div class="right">
                    <h3>投诉建议</h3>
                    <img src="@/assets/line.png">

                    <form >
                        <div class="form-group">
                            <label for="name">姓名:</label>
                            <input type="text" id="name" required>
                        </div>
                        <div class="form-group">
                            <label for="email">邮箱:</label>
                            <input type="email" id="email" required>
                        </div>
                        <div class="form-group">
                            <label for="message">您的建议或投诉:</label>
                            <textarea id="message" rows="1" required></textarea>
                        </div>
                        <button type="submit">提交</button>
                    </form>

                </div>
            </div>

            <div class="row-2">
                <h3>交通与周边信息</h3>
                <img src="@/assets/line.png">
                <TencentMap></TencentMap>
            </div>
            
            <div class="row-2">
                <h3>景区地图</h3>
                <img src="@/assets/line.png">
                <img src="@/assets/site_map.png" width="960px" height="720px" style="margin-top: 20px;">
            </div>

        </div>
        <FooterBorder></FooterBorder>
    </div>
</template>

<style scoped>
h3 {
    color: #333333;
    font-size: 22px;
    font-weight: normal;
    margin: 0 0;
}

.right {
    width: 450px;
}

.row-1 {
    display: flex;
    justify-content: space-between;
}

.left {
    width: 450px;
}

.left img {
    width: 64px;
    height: 2px;
    transform: translateY(-5px);
}

.row-2 img:first-child {
    width: 64px;
    height: 2px;
    transform: translateY(-5px);
}

.row-2 {
    margin-top: 30px;
}

.right img {
    width: 64px;
    height: 2px;
    transform: translateY(-5px);
}

.left p {
    padding-left: 45px;
    margin-top: 30px;
    margin-bottom: 0;
    background-image: url('@/assets/address.png');
    background-repeat: no-repeat;
    height: 34px;

    font-size: 14px;
    color: #666666;
    display: flex;
    align-items: center;
}

.card-box {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-evenly;
}

.card {
    width: 226px;
    height: 258px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    cursor: pointer;
    caret-color: transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* p {
    line-height: 22px;
    color: #555555;
    font-size: 18px;
} */

.line {
    height: 35px;
    border-top: 1px solid #888576;
    margin-top: 35px;
}

.top-image {
    height: 257px;
    background-image: url('@/assets/contact.jpg');
    /* background-size: cover; */
    background-repeat: no-repeat;
    background-position: center center;
}

.position {
    height: 48px;
    background-image: url('@/assets/postionbg.gif');
    /* background-size: cover; */
    /* background-repeat: no-repeat; */
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.position-content {
    display: flex;
    width: 960px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-left: 20px;
    background-image: url('@/assets/postionl.gif');
    background-repeat: no-repeat;
    background-position: center left;
}

.position-content .left {
    display: flex;
    align-items: center;
}

.position-content .right {
    display: flex;
    align-items: center;
}

.bread {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 12px;
    color: #E68340;
}

.bread>span {
    padding-right: 10px;
    background-image: url('@/assets/postij.gif');
    background-repeat: no-repeat;
    background-position: center right;
}

.left>span {
    margin-left: 5px;
    color: #FFE179;
    font-size: 12px;
}

.container {
    width: 960px;
    margin: 0 auto;
    padding: 60px 0;
}

.bt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
    /* border: 2px solid #941200; */
    border-top: 2px solid #941200;
    border-bottom: 2px solid #941200;
    margin-bottom: 30px;
}

.bt>span {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    background-image: url('@/assets/more4.gif');
    background-position: center center;
    background-repeat: no-repeat;
}

.bt>a {
    text-decoration: none;
    color: #941200;
    /* background-color: #941200; */
    font-size: 18px;
    width: 96px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 410px;
  /* max-width: 410px; */
  margin: 0 0;
  margin-top: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  color: #333;
  /* margin-bottom: 5px; */
}

.form-group input,
.form-group textarea {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #941200;
  box-shadow: 0 0 5px rgba(148, 18, 0, 0.3);
  outline: none;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background-color: #941200;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

button:hover {
  background-color: #760000;
  transform: translateY(-2px);
}

button:active {
  background-color: #5c0000;
  transform: translateY(0);
}

</style>